package ai.plantdata.Structural.mode.BridgePattern.abstracts;

import ai.plantdata.Structural.mode.BridgePattern.interfaces.DrawAPI;

/**
 * @Author: WangHui
 * @Date: 2020/12/19 13:50
 * @Description:
 */
public class Circle extends Shape {
    private int x,y,reduxs;

    public Circle(int x, int y, int reduxs,DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.reduxs = reduxs;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(reduxs,x,y);
    }
}
